package base.Day02;

public class DataCastDemo
{
    public static void main(String[] args)
    {

//        long l = 100;
//        int a =100;
//        long l1 = a;
//        int a1 = (int)l1;
//        double d = 222.3;
//        int a2 = (int)d;
//        System.out.println(a2);
//        long ff = 10000000000L;
//        int i_f = (int)ff;
//        System.out.println(i_f  );
//
//
//        System.out.println(Float.SIZE);
//        System.out.println(Short.SIZE);

        byte b1 = 11;
        byte b2 = 22;
        int sum = (int)(b1+b2);
        System.out.println(sum);


        System.out.println(2+2);      //4
        System.out.println('2'+'2');   //100          细节  细节  细节
        System.out.println("2"+"2");//22
        System.out.println(2+'2');//52



    }
}
